package com.wanmait.mpdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.mpdemo.entity.Question;
import com.github.pagehelper.PageInfo;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-01-14
 */
public interface QuestionService extends IService<Question> {

    List<Question> findAll();
    List<Question> findAll(String title);
    List<Question> findAll(Question question);
    Page<Question> findAll(int pageNum,int pageSize);
    PageInfo<Question> findPage(int pageNum,int pageSize);

    List<Question> listByTitle(String title);
}
